package com.zsrt.java.day20161226.hzj.lasthomework;

import java.util.Scanner;

import org.junit.Test;

public class Rn {

	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个有效的年份");
		int year = sc.nextInt();
		sc.close();
		hw1(year);
		
	}
	public static void hw1(int year){
		if(0==year%400){
			System.out.println(year+"是闰年");
		}else if(0==year%4 && 0!=year%100){
			System.out.println(year+"是闰年");
		}else{
			System.out.println(year+"不是闰年");
		}
	}
}
